package com.huangfuyi.datamodel.service;


import com.huangfuyi.datamodel.entity.datadefine.EDataFieldEntity;
import com.huangfuyi.datamodel.entity.datadefine.EDataModelConfExample;
import com.huangfuyi.datamodel.entity.datadefine.EDataModelEntity;
import com.huangfuyi.datasource.enums.EDataSourceType;

import java.util.List;

/**
 * 数据模型服务
 *
 * */
public interface EDataModelService {

    List<EDataModelConfExample> queryDataModelExample(EDataSourceType type);

    int createDataModel(EDataModelEntity dataModelInfo);

    int deleteDataModel(EDataModelEntity dataModelInfo);

    int updateDataModel(EDataModelEntity dataModelInfo);

    EDataModelEntity queryDataModelByDataSourceId(String dataSourceId);

    int addModelFields(String dataModelId, List<EDataFieldEntity> fields);

    int updateModelField(EDataFieldEntity field);

    List<EDataFieldEntity> queryDataFieldList(String modelId, int pageNum, int pageSize);

    List<EDataFieldEntity> queryDataFieldAll(String modelId);

}


